home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4782 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: qualcomm.com!usenet
  2. From: nabbasi@qualcomm.com (Nasser Abbasi)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Why Do I Use An Ampersand in Member Class Parameters?
  5. Date: 1 Feb 1996 02:44:08 GMT
  6. Organization: QUALCOMM
  7. Distribution: world
  8. Message-ID: <4ep9do$a31@qualcomm.com>
  9. References: <4emnv2$n5o@alcor.usc.edu> <4enaak$o1h@ubszh.fh.zh.ubs.com>
  10. NNTP-Posting-Host: nabbasi.qualcomm.com
  11. Mime-Version: 1.0
  12. X-Newsreader: WinVN 0.93.14
  13.  
  14. In article <4enaak$o1h@ubszh.fh.zh.ubs.com>, jis@ubszh.net.ch says...
  15. >
  16. >In article <4emnv2$n5o@alcor.usc.edu>, wawda@alcor.usc.edu (Abu Wawda) 
  17. writes:
  18. >|> class Simple
  19. >|> {
  20. >|> public:
  21. >|>   Simple();
  22. >|>   int operator += (const Simple &);
  23. >|> private:
  24. >|>   int data;
  25. >|> };
  26. >|> 
  27. >|> I have seen many examples of this but I what I don't understand is 
  28. why
  29. >|> there is an amersand after Simple? I would wind up implementating the
  30. >|> function as something like the following:
  31. >
  32. >My suggestion is you obtain a C++ text book -- any C++ text book -- and
  33. >read it.
  34. >
  35. >You might as well ask what is "int".
  36. >
  37. >Ian
  38.  
  39. My suggestion Ian is that if you do not have anything useful to answer
  40. people with, then do not bother answering just to tell them off.
  41.  
  42. People are free to ask any questions they want, you are free to ignor
  43. the question if you want. 
  44.  
  45. I just could never understand why some people like to come in and post a 
  46. reply just to tell other people how silly the question they posted is.
  47.  
  48. amazing.
  49.  
  50. Nasser
  51.  
  52.  
  53.